/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* 架构图颜色 */
    --data-source-color: #e1f5fe;
    --data-source-border: #01579b;
    --data-collection-color: #e8f5e9;
    --data-collection-border: #2e7d32;
    --data-processing-color: #f9fbe7;
    --data-processing-border: #827717;
    --analysis-modeling-color: #fff3e0;
    --analysis-modeling-border: #e65100;
    --application-service-color: #fce4ec;
    --application-service-border: #880e4f;
    --user-interface-color: #e8eaf6;
    --user-interface-border: #1a237e;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* 内容区域样式 */
.section {
    padding: 2rem 0;
    min-height: 50vh;
}

.card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 学术风格样式 */
.abstract {
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.8;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
    margin-bottom: 1rem;
}

.keywords {
    font-size: 0.95rem;
    color: var(--secondary-color);
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

sup {
    color: var(--primary-color);
    font-weight: 600;
}

.references-list {
    padding-left: 1.5rem;
}

.references-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-align: justify;
}

/* 系统概述样式 */
.overview-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: rgba(240, 240, 240, 0.3);
    transition: all 0.3s ease;
}

.overview-item:hover {
    background-color: rgba(240, 240, 240, 0.6);
    transform: translateY(-3px);
}

.overview-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* 架构图静态样式 */
.architecture-diagram-static {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.arch-level {
    margin-bottom: 10px;
}

.arch-group {
    display: inline-block;
    width: 90%;
    max-width: 800px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.arch-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.arch-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.arch-item {
    background-color: white;
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.arch-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 新增架构图详细信息样式 */
.tech-note {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 5px;
    font-style: italic;
}

.arch-description {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--dark-color);
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.arch-arrow {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--secondary-color);
    position: relative;
}

.data-flow {
    position: absolute;
    right: 20%;
    top: 0;
    font-size: 0.8rem;
    background-color: rgba(13, 110, 253, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
}

.principle-list {
    padding-left: 1.2rem;
}

.principle-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.principle-list li strong {
    color: var(--primary-color);
}

.theory-basis {
    background-color: rgba(240, 240, 240, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.theory-basis h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 架构层颜色 */
.data-source {
    background-color: var(--data-source-color);
    border: 2px solid var(--data-source-border);
}

.data-collection {
    background-color: var(--data-collection-color);
    border: 2px solid var(--data-collection-border);
}

.data-processing {
    background-color: var(--data-processing-color);
    border: 2px solid var(--data-processing-border);
}

.analysis-modeling {
    background-color: var(--analysis-modeling-color);
    border: 2px solid var(--analysis-modeling-border);
}

.application-service {
    background-color: var(--application-service-color);
    border: 2px solid var(--application-service-border);
}

.user-interface {
    background-color: var(--user-interface-color);
    border: 2px solid var(--user-interface-border);
}

/* 架构图样式 */
.architecture-container, .workflow-container, .timeline-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
}

.diagram-container, .chart-container {
    min-height: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 auto;
}

/* 架构列表样式 */
.architecture-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .diagram-container, .chart-container {
        min-height: 300px;
    }
    
    .arch-items {
        flex-direction: column;
        align-items: center;
    }
    
    .arch-item {
        width: 90%;
    }
}

/* 自定义Mermaid图表样式 */
.mermaid {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif !important;
}

/* 时间线静态样式 */
.timeline-static {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 30px 20px;
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.month-marker {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
    flex: 1;
    text-align: center;
}

.timeline-bars {
    position: relative;
    padding: 20px 0;
}

.timeline-phase {
    position: relative;
    height: 50px;
    margin-bottom: 15px;
}

.phase-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    text-align: right;
    padding-right: 15px;
    font-size: 0.9rem;
    line-height: 30px;
    color: var(--dark-color);
}

.phase-bar {
    position: absolute;
    top: 0;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 160px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.phase-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.phase-duration {
    font-weight: 600;
}

.phase-continuous {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

/* 新增时间规划详细信息样式 */
.phase-resources {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background-color: rgba(108, 117, 125, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.timeline-events {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: 20px;
}

.timeline-event {
    position: absolute;
    top: 0;
}

.event-marker {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-marker:hover {
    transform: scale(1.2);
}

.milestone-criteria {
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 5px 8px;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.critical-path {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(220, 53, 69, 0.05);
    border-radius: 8px;
}

.path-item {
    padding: 4px 8px;
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.risk-list {
    padding-left: 1.2rem;
}

.risk-list li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.risk-list li strong {
    color: var(--danger-color);
}

.cost-chart {
    margin-top: 10px;
}

.cost-category {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}

.cost-label {
    width: 100px;
    font-size: 0.85rem;
}

.cost-bar {
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    border-radius: 4px;
}

.cost-note {
    color: var(--secondary-color);
    font-style: italic;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* 里程碑卡片 */
.milestone-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.milestone-card[data-month="1"] {
    border-left-color: #4285f4;
}

.milestone-card[data-month="2"] {
    border-left-color: #34a853;
}

.milestone-card[data-month="3"] {
    border-left-color: #fbbc05;
}

.milestone-card[data-month="4"] {
    border-left-color: #ea4335;
}

.milestone-card[data-month="5"] {
    border-left-color: #673ab7;
}

.milestone-card[data-month="6"] {
    border-left-color: #009688;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.milestone-month {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 0 8px 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.milestone-card[data-month="1"] .milestone-month {
    background-color: #4285f4;
}

.milestone-card[data-month="2"] .milestone-month {
    background-color: #34a853;
}

.milestone-card[data-month="3"] .milestone-month {
    background-color: #fbbc05;
}

.milestone-card[data-month="4"] .milestone-month {
    background-color: #ea4335;
}

.milestone-card[data-month="5"] .milestone-month {
    background-color: #673ab7;
}

.milestone-card[data-month="6"] .milestone-month {
    background-color: #009688;
}

.milestone-card h5 {
    margin: 10px 0 15px 0;
    font-size: 1.1rem;
}

.milestone-tasks {
    padding-left: 20px;
    margin-bottom: 0;
}

.milestone-tasks li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .phase-label {
        width: 120px;
        font-size: 0.8rem;
    }
    
    .phase-bar {
        margin-left: 130px;
    }
    
    .month-marker {
        font-size: 0.8rem;
    }
}

/* 原有时间线样式 */
.timeline-item {
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 1.5rem;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 工作流程图样式 */
.workflow-step {
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
    margin: 5px 0;
    border-left: 3px solid var(--primary-color);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 工作流程静态展示样式 */
.workflow-diagram-static {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.workflow-step-container {
    padding: 20px 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.workflow-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.milestone-icon {
    width: 40px;
    height: 40px;
    background-color: var(--danger-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}

.milestone-text {
    margin-top: 5px;
    font-weight: 600;
    color: var(--danger-color);
}

.workflow-arrow {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--secondary-color);
    position: relative;
}

/* 新增工作流程详细信息样式 */
.workflow-output {
    position: absolute;
    right: 20%;
    top: 0;
    font-size: 0.8rem;
    background-color: rgba(25, 135, 84, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--success-color);
    font-weight: 500;
}

.step-detail {
    margin-top: 5px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.method, .output {
    display: block;
    padding: 2px 0;
}

.method {
    color: var(--primary-color);
    border-bottom: 1px dotted #ddd;
}

.output {
    color: var(--success-color);
}

.phase-metrics {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.metric {
    font-size: 0.8rem;
    color: var(--secondary-color);
    background-color: rgba(108, 117, 125, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.metric i {
    color: var(--primary-color);
}

.innovation-list, .tech-route-list {
    padding-left: 1.2rem;
}

.innovation-list li, .tech-route-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.workflow-phase {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.phase-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.phase-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phase-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.work-step {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin: 5px 0;
    min-width: 200px;
    transition: all 0.3s ease;
}

.work-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.step-arrow {
    font-size: 1rem;
    margin: 5px 0;
    color: var(--secondary-color);
}

.workflow-description {
    background-color: rgba(240, 240, 240, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.workflow-description:hover {
    background-color: rgba(240, 240, 240, 0.6);
}

.workflow-description h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .phase-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .work-step {
        min-width: auto;
        width: 100%;
    }
} 